
 

<script language="javascript">
	function validate()
	{
		if ($('#malop').val()=='')
		{
			$('#malop').focus();
			$("#alert-message").dialog("open");
			return false;
		}
		if ($('#tenLop').val()=='')
		{
			$('#tenLop').focus();
			$("#alert-message1").dialog("open");
			return false;
		}
		return true;
	}

</script>


<div id="tabs">
	<ul>
        <li><?php echo $this->Html->link(__('Danh sách các lớp', true), array('action' => 'index')); ?></li>
        <li id="current"><?php echo $this->Html->link(__('Tạo lớp', true), array('controller'=>'lops','action' => 'add')); ?></li>
	</ul>
 </div>
 
 
<div id="alert-message" title="Thông báo">
	<p> Chưa nhập Mã Lớp</p> 
</div>
<div id="alert-message1" title="Thông báo">
	<p> Chưa nhập Tên Lớp</p> 
</div>
<div class="lops form">
<?php echo $this->Form->create('Lop', array('onsubmit'=>'return validate()'));?>
	<fieldset>
		<legend><?php __('Tạo Lớp'); ?></legend>
	<?php
		echo $this->Form->input('nganh_id', array('label'=>'Tên Ngành'));
		echo $this->Form->input('malop', array('id'=>'malop','label'=>'Mã Lớp'));
		echo $this->Form->input('tenLop', array('id'=>'tenLop','label'=>'Tên Lớp'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Tạo Mới', true));?>
</div>
<!--<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Ds lớp', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('Ds Ngành', true), array('controller' => 'nganhs', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Nganh', true), array('controller' => 'nganhs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Ds Sinh Viên', true), array('controller' => 'sinhviens', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Sinhvien', true), array('controller' => 'sinhviens', 'action' => 'add')); ?> </li>
	</ul>
</div>-->